
#include "PyScriptAgent.hpp"

#include <PythonQt.h>

namespace NSPython {

	PyScriptAgent* PyScriptAgent::m_ins = nullptr;

	void PyScriptAgent::Initialize() {

	}

	void PyScriptAgent::Finalize() {

	}

	void PyScriptAgent::runCommand(QString script) {
		PythonQtObjectPtr context = PythonQt::self()->getMainModule();
		context.evalScript(script);

	}

	void PyScriptAgent::init(int flags, const QByteArray& pythonQtModuleName) {
		Q_UNUSED(pythonQtModuleName);
		PythonQt::init(flags, "PyApi");

	}

}